package com.itpuyang.design23.factory.method;

public class Consumer {

    public static void main(String[] args) {
        Car car = new WulingFactory().getCar();
        Car car1 = new TeslaFactory().getCar();
        car.name();
        car1.name();



    }
}
